﻿
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Text;

namespace DH.Share.Comm.Commands
{
   public class MenuCommand
    {
        public static void OpenBusinessView(IRegionManager regionManager)
        {
            regionManager.Regions["ContentRegion"].RemoveAll();
           // regionManager.Regions["ContentRegion"].Add(new BusinessView(), "viewa");
            regionManager.RequestNavigate("ContentRegion", "BusinessView");
        }
        public static void OpenInfoView(IRegionManager regionManager,object view)
        {
            regionManager.Regions["NavigationContent"].RemoveAll();
            //regionManager.RequestNavigate("NavigationContent", "InfoView");
            regionManager.Regions["NavigationContent"].Add(view, "viewa");
        }
    }
}
